#!/bin/bash
##
# reg: https://github.com/distribution/distribution-library-image/blob/master/entrypoint.sh
##
set -e

cd $(dirname $0)

export REGISTRY_STORAGE_DELETE_ENABLED=true
export REGISTRY_AUTH=htpasswd
export REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
export REGISTRY_AUTH_HTPASSWD_PATH={{ registry_home }}/auth/passwd

{{ registry_home }}/registry serve {{ registry_home }}/config.yml
